package com.epam.training.entityes;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Outlay {
	
	@Id
	private int outlayId;
	
	@Column(name = "scope", unique = true, nullable=false)
	private String scope;
	
	@Column(name = "money", nullable=false)
	private double money;
	
	public Outlay(int outlayId, String scope, double money) {
		super();
		this.outlayId = outlayId;
		this.scope = scope;
		this.money = money;
	}
	
	public int getOutlayId() {
		return outlayId;
	}
	public void setOutlayId(int outlayId) {
		this.outlayId = outlayId;
	}
	public String getScope() {
		return scope;
	}
	public void setScope(String scope) {
		this.scope = scope;
	}
	public double getMoney() {
		return money;
	}
	public void setMoney(double money) {
		this.money = money;
	}
}
